<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> costUpdate方法  </title>
<script type="text/javascript">
function num(th){
	th.value = th.value.replace(/[^\d\.\-]*$/g, '');
}
</script>
</head>
<body>
	<form id="costUpdate" action="${pageContext.request.contextPath }/costAnalysis/updateCost.action?selectOneId=${selectOne.id}" method="post" >
		<table width="100%" border=1>
		<tr>
			<td>能源id：</td>
			<td><input type="text" onkeyup = 'num(this)' name="code" value="${selectOne.code}" readonly="true" /></td>
		</tr>
		<tr>
			<td>能源类型:</td>
			<td><input type="text" name="energyType" value="${selectOne.energyType}"/></td>
		</tr>
		<tr>
			<td>能源单价：</td>
			<td><input type="text" name="unitPrice" value="${selectOne.unitPrice}"/></td>
		</tr>
		</table>
		<input type="submit" value="提交修改" />
	</form>
</body>
</html>